<form id="company_info" method="post">
    <div align="center">
        <div>
            <label>公司名称:</label>
            <input class="easyui-validatebox" type="text" name="companyName" data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label>公司性质:</label>
            <select class="easyui-combobox" name="companyXingzhi" style="width:135px;">
            <@dict type="gsxz">
                <#list labels as label>
                    <option value="${label.label_value}">${label.label_name}</option>
                </#list>
            </@dict>
            </select>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">注册资金:</label>
            <input class="easyui-numberbox" type=" text" name="companyMoney" data-options="min:0,precision:2,suffix:'万',
            required:true" />
        </div>
        <div style="margin-top: 10px;">
            <label for="name">合作时间:</label>
            <input class="easyui-datebox" type="text" name="companyCreateTime" data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">注册地址:</label>
            <input class="easyui-validatebox" type="text" name="companyAddress" data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">经营范围:</label>
            <@dict type="jyfw">
                <#list labels as label>
                    <input type="checkbox" name="companyRange" id="${label.label_value}" value="${label.label_name}" /><label for="${label.label_value}">${label.label_name}</label>
                </#list>
            </@dict>
        </div>
        <div align="center" style="margin-top: 10px;">
            <button type="submit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">保存</button>
        </div>
    </div>
</form>
<script>
    var companyInfo = $('#company_info');
    companyInfo.form({
        url: '${ctx}/offer/addCompany',
        onSubmit: function () {
            return companyInfo.form('validate') ? true : false;
        },
        success: function (data) {
            parent.$.modalDialog.openner.datagrid('reload');
            parent.$.modalDialog.handler.dialog('close');
        }
    });
    companyInfo.submit();
</script>
